import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import App from './app.vue';
import routerConfig from './router';


Vue.use(VueRouter);
Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        count: 0
    },
    mutations: {
        increment (state) {
            state.count++
        }
    }
})

const router = new VueRouter(routerConfig)
const app = new Vue({
    el: '#app',
    store,
    router: router,
    render: h => h(App)
});